package com.tour.service;

import com.github.pagehelper.PageInfo;
import com.tour.common.ServerResponse;
import com.tour.pojo.EasyUIDataGridResult;
import com.tour.pojo.TrDesc;
import com.tour.pojo.TrevalProject;

/**
 * Created by fivedeath
 */
public interface ITrevalProjectService {

    ServerResponse saveOrUpdateProject(TrevalProject trevalProject, String desc);

    ServerResponse<String> setStatus(Long productId,Integer status);

    ServerResponse<TrevalProject> manageProjectDetail(Long trevalProjectId);

    EasyUIDataGridResult getProjectList(int pageNum, int pageSize);

    ServerResponse<PageInfo> searchProject(String projectName,Long projectId,int pageNum,int pageSize);

    ServerResponse<TrevalProject> getProjectDetail(Long ProjectId);

    ServerResponse<PageInfo> getProjectByKeywordCategory(String keyword,Integer toPlaceId,int pageNum,int pageSize,String orderBy);
    
    ServerResponse<TrDesc> getTrDescById(Long id);
    
    ServerResponse deleteProject(Long id);
    
    ServerResponse getTrCount();
    
    ServerResponse getTrList(int pageNum, int pageSize);

}
